<template>
	<view>
		<!-- 搜索 -->
		<view class="headbox">
			<view class="search">
				<view class="iconfont icon-fangdajing"></view>
				<input type="text" placeholder="搜索关键字">
			</view>
		</view>
		<!-- 全部 -->
		<view class="all">
			<view class="l">全部</view>
			<view class="r">系统消息</view>
		</view>
		<!-- 数据 -->
		<view class="info">
			<view class="item" @click="$utils.go('/pages/chat/chat')">
				<view class="l">
					<view class="logo">
						<image src="../../static/tu3.jpg" mode=""></image>
					</view>
					<view class="box">
						<view class="name">高玲</view>
						<view class="tit">收到</view>
					</view>
				</view>
				<view class="r">
					上午8:18
				</view>
			</view>
			<view class="item">
				<view class="l">
					<view class="logo">
						<image src="/static/tu4.jpg" mode=""></image>
					</view>
					<view class="box">
						<view class="name">张豪</view>
						<view class="tit">家里暖气不热了，能派人过来修吗</view>
					</view>
				</view>
				<view class="r">
					11月8日
				</view>
			</view>
			<view class="item">
				<view class="l">
					<view class="logo">
						<image src="/static/tu4.jpg" mode=""></image>
					</view>
					<view class="box">
						<view class="name">张豪</view>
						<view class="tit">家里暖气不热了，能派人过来修吗</view>
					</view>
				</view>
				<view class="r">
					11月8日
				</view>
			</view>
			<view class="item">
				<view class="l">
					<view class="logo">
						<image src="/static/tu4.jpg" mode=""></image>
					</view>
					<view class="box">
						<view class="name">张豪</view>
						<view class="tit">家里暖气不热了，能派人过来修吗</view>
					</view>
				</view>
				<view class="r">
					11月8日
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="less">
	// @import url(/static/iconfont/iconfont.css);

	// 搜索
	.headbox {
		margin-top: 60rpx;
		margin-left: 40rpx;
		margin-right: 40rpx;
		.search {
			height: 60rpx;
			margin: 0 auto;
			background-color: #f4f6f5;
			border-radius: 50rpx;
			display: flex;
			margin-bottom: 15rpx;

			.iconfont {
				width: 30rpx;
				font-size: 30rpx;
				line-height: 60rpx;
				margin-left: 30rpx;
			}

			input {
				height: 60rpx;
				margin-left: 20rpx;
			}
		}
	}

	// 全部
	.all {
		height: 105rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
		border-bottom: 2rpx solid #f1f1f3;
		display: flex;
		justify-content: space-between;
		line-height: 105rpx;

		.l {
			font-size: 30rpx;
			color: #458df6;
			margin-left: 40rpx;
		}

		.r {
			color: #575757;
			margin-right: 30rpx;
		}
	}

	// 数据
	.info {
		margin-top: 70rpx;
		padding-left: 30rpx;
		padding-right: 30rpx;

		.item {
			height: 95rpx;
			margin-bottom: 40rpx;
			display: flex;
			justify-content: space-between;

			.l {
				display: flex;

				.logo {
					width: 95rpx;
					height: 95rpx;
					border-radius: 20rpx;
					margin-right: 30rpx;

					image {
						border-radius: 20rpx;
						width: 95rpx;
						height: 95rpx;
					}
				}

				.box {
					width: 455rpx;
					height: 95rpx;
					font-size: 30rpx;
					line-height: 45rpx;

					.tit {
						white-space: nowrap;
						/* 禁止文本换行 */
						overflow: hidden;
						/* 超出部分隐藏 */
						text-overflow: ellipsis;
						/* 超出部分以省略号代替 */
						color: #c1c1c3;
					}
				}
			}

			.r {
				font-size: 20rpx;
				color: #d1d1d1;
			}
		}
	}
</style>